package com.sq.partner.manager.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sq.partner.manager.dao.IFacadeUserChannelDao;
import com.sq.partner.manager.mybatis.model.ChannelDto;
import com.sq.partner.manager.mybatis.model.FacadeUserChannel;
import com.sq.partner.manager.service.IFacadeUserChannelService;
@Service
public class FacadeUserChannelServiceImpl implements
		IFacadeUserChannelService {

	@Resource
	IFacadeUserChannelDao gatewayFacadeUserChannelDao;
	
	@Override
	public void add(FacadeUserChannel channel) throws Exception {
		gatewayFacadeUserChannelDao.add(channel);
	}

	@Override
	public boolean delete(Long userId) throws Exception {
		return gatewayFacadeUserChannelDao.delete(userId);
	}

	@Override
	public List<ChannelDto> queryChannelsByUserid(
			FacadeUserChannel channel) throws Exception {
		return gatewayFacadeUserChannelDao.queryChannelsByUserid(channel);
	}

}
